import { request } from "@utils/request.js";

// 获取应用列表
export function applicationList(params,way) {
    return request({
        url: `app/createapp/`,
        method: `${way}`,
        params
    })
}
// 获取应用
export function applicationData(id,way) {
    return request({
        url: `app/createapp/${id}/`,
        method: `${way}`,
    })
}
// 创建应用
export function createApplication(data) {
    return request({
        url: `app/createapp/`,
        method: 'POST',
        data
    })
}

// 删除应用
export function deleteApplication(id) {
    return request({
        url: `app/createapp/${id}/`,
        method: 'DELETE',
    })
}